package com.yxym.try_;

public class TryCatchDetail {
    public static void main(String[] args) {
        try{
            int n1 = 10;
            int n2 = 0;
            int res = n1/n2;
            System.out.println(res);
        }catch (ArithmeticException e){
            System.out.println("算数异常..." + e.getMessage());
        }
        finally {
            System.out.println("finally程序执行...");
        }
        System.out.println("程序继续执行...");
    }
}
